﻿using Glue.Internals;
using GlueTests.Builders;
using Xunit;

namespace GlueTests
{
    namespace MemberContainerTest
    {
        public class When_adding_a_property_several_times
        {
            public string MockProperty { get; set; }
            private readonly IObjectMember member;
            private readonly MemberContainer container;

            public When_adding_a_property_several_times()
            {
                member = new PropertyBuilder(typeof(When_adding_a_property_several_times),"MockProperty").Build();
                container = MemberContainer.CreateContainer();
            }

            [Fact]
            public void Should_accept()
            {
                container.AddToLeftSide(member);
                container.AddToLeftSide(member);
            }
        }
        
    }
}
